﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Marmat.Forms
{
    public sealed  class InputRemark
    {
        /// <summary>
        /// 显示备注输入框
        /// </summary>
        /// <param name="variant"></param>
        /// <param name="caption"></param>
        /// <returns></returns>
        public static bool Show(ref string variant, string caption = "备注")
        {
            InputRemarkForm frm = new InputRemarkForm();
            frm.Text = caption;
            frm.memoBox1.Value = variant;
            if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                variant = frm.memoBox1.Value;
                return true;
            }
            return false;
        }
    }
}
